package com.handsome.原型模式.原型模式;

/**
 * @author niechun
 * @date 2023/1/17 19:48
 */
public class Sheep  implements Cloneable{
    public Object setDate;
    private String name;
    private int age ;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    protected Sheep clone() throws CloneNotSupportedException {

        return (Sheep) super.clone();
    }

    @Override
    public String toString() {
        return "Sheep{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
